import request from '@/utils/request'

// 查询栏目列表
export function listNewsColumn(query) {
  return request({
    url: '/wcsoft/newsColumn/list',
    method: 'get',
    params: query
  })
}

// 查询栏目详细
export function getNewsColumn(newsColumnId) {
  return request({
    url: '/wcsoft/newsColumn/' + newsColumnId,
    method: 'get'
  })
}

// 新增栏目
export function addNewsColumn(data) {
  return request({
    url: '/wcsoft/newsColumn',
    method: 'post',
    data: data
  })
}

// 修改栏目
export function updateNewsColumn(data) {
  return request({
    url: '/wcsoft/newsColumn',
    method: 'put',
    data: data
  })
}

// 删除栏目
export function delNewsColumn(newsColumnId) {
  return request({
    url: '/wcsoft/newsColumn/' + newsColumnId,
    method: 'delete'
  })
}
